// index.js


Page({
  data: {
    hbdata: [
      {
        id: 1,
        mobile: "18177***7889",
        price: "188.8",
      }, {
        id: 2,
        mobile: "18177***7889",
        price: "188.8",
      }, {
        id: 3,
        mobile: "18177***7889",
        price: "188.8",
      }, {
        id: 4,
        mobile: "18177***7889",
        price: "188.8",
      }
    ],
    broadcast: {},
  },

  onLoad() {
    let { hbdata, broadcast, width, speed = 30 } = this.data;
    width = hbdata.length * 20 * 12;
    broadcast.time = width / speed;
    broadcast.width = width;
    this.setData({ broadcast });
  },

})
